
function main(){


    // Module name: UnityFramework
    // Base address: 0x1066c0000
    // Size: 67305472
    // Path: /private/var/containers/Bundle/Application/90A2CC40-E2A4-42EB-BFF3-F8157039FF8B/onepiece.app/Frameworks/UnityFramework.framework/UnityFramework


    Process.enumerateModules({
        onMatch: function(module){

           // if (module.path.indexOf('UnityFramework.framework')!=-1)
            {
                console.log('Module name: ' + module.name);
                console.log('Base address: ' + module.base);
                console.log('Size: ' + module.size);
                console.log('Path: ' + module.path);
                console.log('--------------------------------------------------------');//sub_D84B54
                var baseAddress = module.base
              //  var setTimeScale = new NativeFunction(baseAddress.add(0xEBC53C), "pointer", ["float"])

             //   setTimeScale(20)


            }

        },

        onComplete: function(){
        }

    })
}
function loadDylib() {
    var dlopen = new NativeFunction(Module.findExportByName(null, 'dlopen'), 'pointer', ['pointer', 'int']);
    var path = Memory.allocUtf8String("/usr/lib/test.dylib");
    dlopen(path, 10);
}

setImmediate(main)

//conda activate py38ios
//objection --gadget com.hermes.wl explore
//frida -U --no-pause -f com.hermes.wl -l wlxx.js
//frida -U --no-pause -f com.Aligames.hhw -l wlxx.js
//frida -U --no-pause -f com.bleach.sjxh.cn.ios -l ioshhwrsyz.js
//frida -U 武林闲侠 -l wlxx.js
//objection -g "com.xxxx.tomatodo" explore